package com.czf.personal.controller;

import com.czf.common.entity.OtherSoftwareCore;
import com.czf.common.util.AjaxResult;
import com.czf.personal.service.SoftwareScoreServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zfChen
 * @create 2022/4/22 16:34
 */
@RestController
@RequestMapping("/software")
@CrossOrigin
@Slf4j
public class SoftwareScoreController {

    @Autowired
    private SoftwareScoreServiceImpl softwareScoreService;

    @RequestMapping(value = "/select",method = RequestMethod.GET)
    public AjaxResult select(OtherSoftwareCore otherSoftwareCore,Long userId){
        Double select = softwareScoreService.select(otherSoftwareCore, userId);
        return AjaxResult.success(select);
    }
}
